let isMobile = () => {
    let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
    return flag;
}


var config = "https://newbest.io/newbest";

if (process.env.NODE_ENV === "development") {
  config = "http://192.168.1.100/newbest";
} else {
  config = "https://newbest.io/newbest";
}

export default {
    config,
    isMobile
  }